package com.dhcc.DRGsHosp.core.domain;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import org.openkoala.koala.commons.domain.KoalaLegacyEntity;

/**
 * @title		:T_DRGVERSION.java
 * @description	:DRGs版本管理
 * @author		:huangju
 * @date		:2018年9月11日
 */
@Entity
@Table(name="T_DRGVERSION", schema = "DRGs")
public class DrgsVersionManage extends KoalaLegacyEntity {

	/**
	 * 空构造函数
	 */
	public DrgsVersionManage() {
		super();
	}
	

	/**
	 * @param verCode 版本编码	
	 * @param verDesc 版本名称
	 * @param icd9Version ICD9版本	
	 * @param icd10Version ICD10版本
	 * @param regionCode 地区编码
	 * @param addDate 添加日期
	 */
	public DrgsVersionManage(String verCode,String verDesc, 
			String icd9Version,String icd10Version,String regionCode,Date addDate) {
		super();
		this.verCode=verCode;
		this.verDesc=verDesc;
		this.icd9Version=icd9Version;
		this.icd10Version=icd10Version;
		this.regionCode=regionCode;
		this.addDate=addDate;
	}
	
		//版本编码
	    @Id
		@Column(name = "VER_CODE",nullable=false)
		private String verCode;
		
		//版本名称
		@Column(name = "VER_DESC")
		private String verDesc;
		
		//ICD9版本
		@Column(name = "ICD9_VERSION",nullable=true)
		private String icd9Version;
				
		//ICD10版本
		@Column(name = "ICD10_VERSION",nullable=true)
		private String icd10Version;
				
		//地区代码  BJ-北京临床版  CN-全国标准版
		@Column(name = "REGION_CODE",nullable=true)
		private String regionCode;
				
		//添加日期
		@Temporal(TemporalType.DATE)
		@Column(name = "ADD_DATE",nullable=true)
		private Date addDate;

		public String getVerCode() {
			return verCode;
		}


		public void setVerCode(String verCode) {
			this.verCode = verCode;
		}


		public String getVerDesc() {
			return verDesc;
		}


		public void setVerDesc(String verDesc) {
			this.verDesc = verDesc;
		}

		public String getIcd9Version() {
			return icd9Version;
		}


		public void setIcd9Version(String icd9Version) {
			this.icd9Version = icd9Version;
		}


		public String getIcd10Version() {
			return icd10Version;
		}


		public void setIcd10Version(String icd10Version) {
			this.icd10Version = icd10Version;
		}


		public String getRegionCode() {
			return regionCode;
		}


		public void setRegionCode(String regionCode) {
			this.regionCode = regionCode;
		}

		public Date getAddDate() {
			return addDate;
		}


		public void setAddDate(Date addDate) {
			this.addDate = addDate;
		}
		
		
		@Override
		public Serializable getId() {
			return verCode;
		}

		@Override
		public String[] businessKeys() {
			return null;
		}
}
